function main (params) {
    tool.openApp('仙侠神域')
    while (true) {
        let texts = tool.getText('开始挂机');
        if (texts !== null) {
            // console.log('点击挂机');
            texts.clickCenter();
        }
    }
}
function delay (ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}
exports.main = main;